package string_;

/**
 * @description:
 * @Author yyp
 * @time
 */
public class StringExercise09 {
    public static void main(String[] args) {
        String a = "hello";
        String b = "world";
        String c = "helloworld";
        String d = a+b;
        String e = (a+b).intern();
        System.out.println("c and d");
        System.out.println(c == d);
        System.out.println("c and e");
        System.out.println(c == e);
        System.out.println("d and e");
        System.out.println(d == e);
    }
}
